Create Admin Command: New Flags #5749
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds flags to target changes to the first default admin user, and to generate a password.
Related to #4575.
New flags:
--generate-password
: Generate a random password, and echo it back out as the only output on success.--initial
: Update the default[email protected]
user if an existing admin, otherwise create a new admin user if there's no existing admin accounts.When the
--initial
flag is given, the email and name of the account will default to[email protected]
andAdmin
if not provided (Allowing simpler default account creation in future). If the default admin does not exist with this flag, and an existing non-default admin already exists, then user creation will be skipped with a message and an exit code of2
.Docs Updates